gdk: Remove remainings of fake crossing event delivery across touch
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 15 Sep 2017 17:50:01 +0000 (19:50 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 19 Sep 2017 16:40:51 +0000 (18:40 +0200)
This was by all lights broken, and is basically an implementation detail
of the X11 backend since the pointer emulating touch just steals the pointer
cursor, so should be reimplemented there.

gdk/gdkdisplay.c
gdk/gdkdisplayprivate.h

index 4c9454f444fb239352d6e386205888623f2be2a5..6d45b078b1d59fbb21d587e8eaa95f9da0d3c6e4 100644 (file)
@@ -787,17 +787,6 @@ switch_to_pointer_grab (GdkDisplay        *display,
 
       if (grab == NULL) /* Ungrabbed, send events */
        {
-          /* If the source device is a touch device, do not
-           * propagate any enter event yet, until one is
-           * synthesized when needed.
-           */
-          if (source_device &&
-              (gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN))
-            info->need_touch_press_enter = TRUE;
-
-          if (info->need_touch_press_enter)
-            new_toplevel = NULL;
-
          /* We're now ungrabbed, update the window_under_pointer */
          _gdk_display_set_window_under_pointer (display, device, new_toplevel);
        }
index de280c4fb82afec66701ee3620f86e970c9a48ae..a0d9dc23fd08da40f27a8f4e013380d930368a8e 100644 (file)
@@ -68,7 +68,6 @@ typedef struct
   guint32 state;
   guint32 button;
   GdkDevice *last_slave;
-  guint need_touch_press_enter : 1;
 } GdkPointerWindowInfo;
 
 struct _GdkDisplay